<template>
  <div>
    <!-- <h1>消息id:{{ $route.params.id }}</h1>
    <h1>消息标题:{{ $route.params.title }}</h1> -->
    
    <!-- props：true第二种写法 -->
    <h1>消息id:{{ id }}</h1>
    <h1>消息标题:{{ title }}</h1>
    <!-- <h1>a:{{ a }}</h1>
    <h1>b:{{ b }}</h1> -->
    
  </div>
</template>

<script>
export default {
  name: "Detail",
  props:["id","title"]
};
</script>

<style>
</style>